// 我的定制列表
export const getMyCustomList = (params) => uni.$u.http.get('/rest/app/customProduct/list', {
	params: params
})
// 删除定制图片
export const deleteCustom = (data) => uni.$u.http.post('/rest/app/customProduct/delete', data)

// 删除照片
export const deleteImage = (data) => uni.$u.http.post('/rest/app/stickerImage/delete', data)

// 我的原图列表
export const getMyCustomImageList = (params) => uni.$u.http.get('/rest/app/customImage/list', {
	params: params
})
// 删除原图
export const deleteCustomImage = (data) => uni.$u.http.post('/rest/app/customImage/delete', data)

// 风格类型列表
export const getStyleList = (params) => uni.$u.http.get('/rest/app/style/list', {
	params: params
})
// 获取材质列表
export const getMaterialList = (params) => uni.$u.http.get('/rest/app/material/list?type=10')

// 手机壳案例列表
export const getExampleList = (data) => uni.$u.http.post('/rest/app/sticker/list', data)
// 获取案例下划列表
export const getCustomScrollList = (data) => uni.$u.http.post('/rest/app/sticker/scrollList', data)

// 获取用户历史上传照片
export const getHistoryImages = (params) => uni.$u.http.get('/rest/app/userImage/list', {
	params: params
})
// 获取用户历史上传的背景图照片
export const getHistoryBgImages = (params) => uni.$u.http.get('/rest/app/stickerImage/list', {
	params: params
})
// 删除用户历史图片
export const deleteUserImage = (data) => uni.$u.http.post('/rest/app/userImage/delete', data)

// 上传图片/rest/app/userImage/create
// export const uploadUserImage = (data) => uni.$u.http.post('/rest/app/userImage/create', data)

// 提交生成定制图片
export const generateCustomImage = (data) => uni.$u.http.post('/rest/app/customProduct/generate', data)

// 提交生成文字图片
export const generateTextImage = (data) => uni.$u.http.post('/rest/app/customProduct/generateWord', data, {
	header: {'Content-Type': 'multipart/form-data'}
})

// 获取字体列表
export const getFontList = (params) => uni.$u.http.get('/rest/app/font/list', {
	params: params
})

// 获取定制详情
export const getCustomDetail = (params) => uni.$u.http.get('/rest/app/customProduct/detail', {
	params: params
})

// 人像定制编辑
export const setCustomEdit = (data) => uni.$u.http.post('/rest/app/customPhoneCase/update', data)

// 获取分享案例
export const getShareInfo = (params) => uni.$u.http.get('/rest/app/customProduct/getShareRecord', {
	params: params
})
// 生成分享二维码
export const generateShare = (data) => uni.$u.http.post('/rest/app/shareRecord/getAndCreate', data)

// 根据机型筛选所有手机壳
export const getSkuList = (data) => uni.$u.http.post('/rest/app/sku/list', data)

// 获取标签列表
export const getTagsList = (params) => uni.$u.http.get('/rest/app/tag/list', {
	params: params
})
// 获取贴纸库
export const getDecorateList = (data) => uni.$u.http.post('/rest/app/customProduct/configurationList', data)

// 获取模板库
export const getTemplateList = (data) => uni.$u.http.post('/rest/app/customProduct/templateList', data)

// 获取打印图
export const getPrintImage = (params) => uni.$u.http.get('/rest/app/customProduct/print', {
	params: params
})
